package xjtu.one.xsgw.query.worker;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import xjtu.one.xsgw.common.Result;
import xjtu.one.xsgw.common.TokenUtils;

@RestController
@RequestMapping("/query/worker")
public class WorkerAPI {
    //引入依赖对象



    @RequestMapping("/hi1") //接口路径：/security/user/hi1
    public Result hi(){
        String token = TokenUtils.loginSign("11","11");
        System.out.println("这是一个测试");
        System.out.println(Result.success((Object)token).getData());
        return  Result.success((Object)token);
    }



}
